package com.snow.campuslink.user.controller;


import com.snow.campuslink.project.result.Result;
import com.snow.campuslink.user.entity.UserBrowse;
import com.snow.campuslink.user.facade.UserBrowseFacade;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Gaosl
 * @since 2021-03-02
 */
@RestController
@RequestMapping("/user/user-browse")
public class UserBrowseController {

    @Resource
    UserBrowseFacade userBrowseFacade;

    @PostMapping("saveBrowse")
    public Result saveBrowse(@RequestBody UserBrowse userBrowse){
        userBrowseFacade.saveBrowse(userBrowse);
        return Result.success();
    }


}

